<template>
    <div id="app" v-loading="loading" :element-loading-text="loadingText" element-loading-background="rgba(0, 0, 0, 0.5)">
        <router-view/>
    </div>
</template>

<script>
    import store from '@/store'

    export default {
        name: 'App',
        data () {
            return {
                loadingText: '加载中'
            }
        },
        computed: {
            loading () {
                return store.getters.loading
            }
        }
    }
</script>
